package com.woniuxy.person.personiml;

import com.woniuxy.person.Person;

/**
 * @author: admin  <br/>
 * Date: 2022/1/17:12:16  <br/>
 * Description:
 */

public class America implements Person{
    private String name;
    private int age;

    public America() {
    }

    public America(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public void eat() {
        System.out.println("美国人的吃方法");
    }

    @Override
    public String toString() {
        return "America{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
